﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using dnpCryptCompress;

namespace CryptoCompressNew
{
    public class Decrypt
    {
        public static void File(string fileName, string password)
        {
            var cc = new CryptCompress();       
            string result = cc.FileDecrypt(fileName, password);

            if (!result.Contains("entschlüsselt!"))
            {
                throw new ApplicationException(result);
            }

       }
    }
}

